package org.mall.modules.message.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.mall.modules.message.entity.AppMessage;
import org.mall.modules.message.mapper.AppMessageMapper;
import org.mall.modules.message.service.IAppMessageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/***
 *@author yinxucun
 *@date 2019-12-05 14:55 
 */
@Service
public class AppMessageServiceImpl extends ServiceImpl<AppMessageMapper, AppMessage> implements IAppMessageService {
    @Resource
    AppMessageMapper messageMapper;

    @Override
    public IPage<AppMessage> getPageListOfMessage(Page page, String userId) {
        return messageMapper.getPageListOfMessage(page,userId);
    }

    @Override
    public List<AppMessage> getNewMessageListById(String userId,Long id) {
        return messageMapper.getNewMessageListById(userId,id);
    }
}
